﻿//  --------------------------------
//  Copyright (c) AW Systems, Inc. All rights reserved.
//  This source code is made available under the terms of the Microsoft Public License (Ms-PL)
//  http://www.codeplex.com/SLAM/license
//  ---------------------------------

using System;
using System.Configuration;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Xml;
using System.Xml.Linq;

namespace AWS.SLAM.Configuration
{
    /// <summary>
    /// A SLAM configuration section that provides support for connection strings.
    /// </summary>
    public abstract class ConnectionStringSection
    {
        /// <summary>
        /// Gets the default connection string stored in the ConnectionStrings configuration section.
        /// </summary>
        /// <returns></returns>
        public abstract string Default
        {
            get;
        }

        /// <summary>
        /// Gets a connection string stored in the ConnectionStrings configuration section.
        /// </summary>
        /// <returns></returns>
        public abstract string GetConnectionString(string name);
    }
}
